<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="vue.js"></script>
</head>
<body>
        <div id="root">
             <div ref="hello" @click="handleClick">hello vue</div> 
        </div>

        <script>
  
         var  vm   =  new Vue({
            el:'#root',
            methods: {
                handleClick:function(){
                    console.log(this.$refs.hello.innerHTML)
                }
            },
         })
        </script>
</body>
</html>